function selectAll(o)
	{
		var p=new Array();
		var c=document.getElementsByTagName("input")  
  		for(i=0;i<c.length;i++){  
     		 if(c[i].type=="checkbox"&&!c[i].checked)
     		 {  
            	c[i].checked=true ;
            	p.push(c[i].value);
            }
      }   
      var m=p.join(",");
      setSelect("Member_delete",m);
		
	}
	function checkForm(frmName,frmAction,str){
		var yesno=window.confirm(str);
		if(yesno){
			frm=document.getElementById(frmName);
			frm.action=frmAction;
			frm.submit();
		}

	}
		function setCity()
	{
		SetValue("city_list","");
		var m="";
	try{
		var sData = dialogArguments;
		sData.mufeng="";
		var city=document.getElementsByName("city");
		
		var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_city=p2.join(",");
		
		var show_city=p1.join(",");
		sData.mufeng =show_city;
		sData.update();
		
		setSelect("city_list",cook_city);
	}catch(e){
		var parWin = window.opener;
		parWin.mufeng="";
		var city=document.getElementsByName("city");
		
		var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
			
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
		}
		var cook_city=p2.join(",");
		var show_city=p1.join(",");
		parWin.mufeng =show_city;
		parWin.update();
		setSelect("city_list",cook_city);
	}
	
	
	window.self.close()
	}

	function openaddress(){
		
		try{
		showModelessDialog("/member/city_list",window);
	}catch(e){
	
	window.open("/member/city_list",window,"");
		}
	}
	function update()
	{
		document.getElementById("mufeng").value=mufeng;
	}
	
	function openWorkType()
	{
		try{
		showModelessDialog("/member/interest_work_type_list",window);
	}catch(e){
	
	window.open("/member/interest_work_type_list",window);
		}
	}
	
	function updateWorkType()
	{
		document.getElementById("work_type").value=work_type;
	}
	
	function openWorkedType()
	{
		
		try{
		showModelessDialog("/member/worked_type_list",window);
	}catch(e){
	
	window.open("/member/worked_type_list",window);
		}
	}
	
	function updateWorkedType()
	{
		document.getElementById("worked_type").value=worked_type;
	}
	
	function openLanguageList()
	{
		try{
		showModelessDialog("/member/language_list",window);
	}catch(e){
	
	window.open("/member/language_list",window);
		}
	}
	
	function updateLanguage()
	{
		document.getElementById("language_type").value=language_type;
	}
	
	function setWorkType()
	{
		
		SetValue("interest_work_list","");
		var m="";
	try{
		var sData = dialogArguments;
		sData.work_type="";
		var city=document.getElementsByName("work");
		
		var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_work=p2.join(",");
		
		var show_work=p1.join(",");
		sData.work_type=show_work;
		sData.updateWorkType();
		setSelect("interest_work_list",cook_work);
		
	}catch(e){
		var parWin = window.opener;
		parWin.work_type="";
		var city=document.getElementsByName("work");
		
		var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_work=p2.join(",");
		
		var show_work=p1.join(",");
		parWin.work_type=show_work;
		
		setSelect("interest_work_list",cook_work);
		parWin.updateWorkType();
	}
	window.self.close()
	
	}
	
	
	function setLanguage()
	{
		
	SetValue("language_list","");
	var m="";
	try{
		var sData = dialogArguments;
		sData.language_type="";
		var city=document.getElementsByName("language");
		
			var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_city=p2.join(",");
		
		var show_city=p1.join(",");
		sData.language_type=show_city;
		setSelect("language_list",cook_city);
		sData.updateLanguage();
		
	}catch(e){
		var parWin = window.opener;
		parWin.language_type="";
		var city=document.getElementsByName("language");
		
			var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_city=p2.join(",");
		
		var show_city=p1.join(",");
		parWin.language_type=show_city;
		parWin.updateLanguage();
		setSelect("language_list",cook_city);
	}
	
	window.self.close()
	}
	function setWorkedType()
	{
		
		SetValue("worked_list","");
		var m="";
	try{
		var sData = dialogArguments;
		sData.worked_type="";
		var city=document.getElementsByName("worked");
		
		var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_city=p2.join(",");
		
		var show_city=p1.join(",");
		sData.worked_type=show_city;
		setSelect("worked_list",cook_city);
		sData.updateWorkedType();
		
	}catch(e){
		var parWin = window.opener;
		parWin.worked_type="";
		var city=document.getElementsByName("worked");
		
		var p1=new Array();
		var p2=new Array();
		for(var i=0;i<city.length;i++)
		{
			if(city[i].checked)
			{
				
			p2.push(city[i].value);	

			var p=document.getElementById(city[i].value).innerHTML;		
			p1.push(p);	
			}		
			
		}
		var cook_city=p2.join(",");
		
		var show_city=p1.join(",");
		parWin.worked_type=show_city;
		parWin.updateWorkedType();
		setSelect("worked_list",cook_city);
	}
	
	window.self.close()
	
	}

